﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonSettingMenu.aspx.cs"
    Inherits="Portal.PersonSettingMenu" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="CSS/style.css" rel="stylesheet" rev="stylesheet" />
    <link href="CSS/global.css" rel="stylesheet" rev="stylesheet" />
    <link href="../Scripts/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" rev="stylesheet" />
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../Scripts/ligerUI/js/core/base.js" type="text/javascript"></script>
    <script src="../Scripts/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td class="left" id="tdMenuShow">
                    <div id="menu">
                        <strong>功能菜单</strong><span><a href="#" onclick="CheckVisiableStatus(0)"><img src="images/LeftIcon.jpg"
                            title="隐藏菜单" /></a></span></div>
                    <div id="divLeft">
                        <%=MenuString%>
                    </div>
                </td>
                <td width="7" align="center" valign="top" id="tdMenuHide" class="left" style="display: none">
                    <div id="Div1">
                        <span><a href="#" onclick="CheckVisiableStatus(1)">
                            <img src="images/LeftIcon1.jpg" title="展开菜单" /></a></span></div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
<script type="text/javascript">
    function CheckVisiableStatus(status) {
        if (status == 1) {
            $("#tdMenuShow").show();
            $("#tdMenuHide").hide();
            window.parent.frames.frmcontent.cols = "14%,*";
        } else if (status == 0) {
            $("#tdMenuShow").hide();
            $("#tdMenuHide").show();
            window.parent.frames.frmcontent.cols = "30,*";
        }
    }
   
    var num = 0;
    function PersonSetting(item, value) {
        num += 1;
        $.ajax({
            url: "AjaxPage/PersonSettingPage.aspx?num=" + num + "&item=" + item + "&value=" + value,
            success: function () {
                alert("添加成功！");
            }
        });
    }

   
    function changeMenu(ele) {
        $(".menulist").hide();
        $("#u" + ele.id).show();
    }

    function changeSelect(ele,url) {

        $(".menulist li").attr("class", "");
        $(ele).parent().attr("class", "currentLeft");
        if (url != null || url != "") {
            window.parent.frames["frmContentInfo"].location.href = url;
        }
    }
    $(document).ready(function () {
        $("#uh<%=_currentMenuCategory %>").show();
    });
    $(document).ready(function () {
        var xiala = $(".menulist");
        var i = 0;
        xiala.each(function () {
            if ($(this).children().length == 0) {
                $(this).prev().hide();
            }
            else {
                if (i == 0) {
                    $("#u" + $(this).prev().attr("id")).show();
                    i++;
                }
            }
        });
        $("#divLeft").ligerAccordion({ height:450 });
    });
</script>
